package com.deep.deepenterpise.dao;

import com.deep.deepenterpise.model.entity.DrCheckItem;
import com.deep.deepenterpise.model.to.unit.DrCheckItemPageTo;
import com.deep.deepenterpise.model.to.gas.DrItemTo;
import com.deep.deepenterpise.model.vo.unit.DrCheckItemVo;
import com.deep.deepenterpise.model.vo.unit.DrUnitCheckItemVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @author xyz
 * @description 针对表【dr_check_item(DR检查表)】的数据库操作Mapper
 * @createDate 2024-05-17 09:14:11
 * @Entity com.deep.deepenterpise.model.entity.DrCheckItem
 */
public interface DrCheckItemMapper {
    void insertOrUpdate(com.deep.deepenterpise.model.vo.gas.DrCheckItemVo drCheckItemVo);

    List<DrItemTo> findDrContentInDrIds(List<Integer> drIds);

    List<DrUnitCheckItemVo> findByDrCategoryAndDrStatus(@Param("drCategory") Integer drCategory,
                                                        @Param("drStatus") Integer drStatus);

    List<DrCheckItem> findAll();

    List<DrCheckItem> findByDrUnitKey(@Param("drUnitKey") String drUnitKey);

    List<DrCheckItemVo> findByPage(RowBounds rowBounds, DrCheckItemPageTo drCheckItemPageTo);

    Long countByPage(DrCheckItemPageTo drCheckItemPageTo);
}




